﻿@model SocialFront.Services.Application.ViewModels.FooView

@{
    ViewBag.Title = "Update";
}

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>FooView</legend>

        @Html.HiddenFor(x => x.Id)
        <div class="editor-label">
            @Html.LabelFor(model => model.Foo1)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Foo1)
            @Html.ValidationMessageFor(model => model.Foo1)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Foo2)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Foo2)
            @Html.ValidationMessageFor(model => model.Foo2)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

@foreach (var sibling in @Model.Siblings)
{ 
    <div>Sibling = @sibling.SiblingPropFoo</div>
    <div>Sibling = @sibling.SiblingPropFoo2</div>
}


@section scripts 
{
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
}